import type { IllnessTime } from '@/enums'
import { timeOptions, flagOptions } from '@/services/constants'

export const getIllnessTimeText = (time: IllnessTime) => {
  const res = timeOptions.find((item) => item.value === time)
  return res?.label
}

export const getConsultFlagText = (flag: 0 | 1) => {
  const res = flagOptions.find((item) => item.value === flag)
  return res?.label
}
